#ifndef NEWSAMPLE_H
#define NEWSAMPLE_H

#include <QDialog>
#include <QDate>
#include <QTime>
#include <QString>

namespace Ui {
    class NewSample;
}

class NewSample : public QDialog {
    Q_OBJECT
public:
    NewSample(QWidget *parent = 0);
    ~NewSample();
    // set properties
    void setDate(const QDate &date);
    void setTime(const QTime &time);
    void setSystolic(unsigned int systolic);
    void setDiastolic(unsigned int diastolic);
    void setFrequency(unsigned int frequency);
    void setNote(const QString &note);

    // get properties
    const QDate getDate() const;
    const QTime getTime() const;
    unsigned int getSystolic() const;
    unsigned int getDiastolic() const;
    unsigned int getFrequency() const;
    const QString getNote() const;

protected:
    void changeEvent(QEvent *e);

private:
    Ui::NewSample *ui;

private slots:
    void on_cancel_clicked();
    void on_ok_clicked();
};

#endif // NEWSAMPLE_H
